package com.xlh.param.problem;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author sy
 */
@Data
public class ProblemPostParam {

    @NotNull(message = "课程id不可以为空")
    private Long courseId;

    @NotBlank(message = "问题标题不可以为空")
    @Length(max = 100, message = "问题名称不能超过100个字符")
    private String problemName;

    @NotBlank(message = "问题内容不可以为空")
    @Length(max=20000,message="内容长度不能超过20000个字符")
    private String problemContent;

    @NotBlank(message = "问题内容不可以为空")
    @Length(max=20000,message="内容长度不能超过20000个字符")
    private String htmlContent;

    private Long userId;

    private Long chapterId;
}
